package com.idroc.message.filter.codec;

import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

/**
 * 多路复用编解码器工程
 * @author 赤脚詹(yuyoo4j@163.com)
 * @date Aug 17, 2009 4:09:15 PM 
 * @memo:
 */
public class MessageCodecFactory implements ProtocolCodecFactory {
		
	private static ProtocolDecoder decoder = new MessageDecoder();
	private static ProtocolEncoder encoder = new MessageEncoder();
	 
	public ProtocolDecoder getDecoder() throws Exception {
		 
		return decoder;
	}

	public ProtocolEncoder getEncoder() throws Exception {
		 
		return encoder;
	}

}
